package com.eirikb.shared.events;

import com.eirikb.client.Client;

/**
 *
 * @author eirikb
 */
public class MessageEvent extends Event {

    private String from;
    private String message;

    public MessageEvent() {
    }

    public MessageEvent(String from, String message) {
        this.from = from;
        this.message = message;
    }

    public void execute(Client client) {
        client.getChat().addChat(from, message);
    }
}
